package com.youlai.quarkus.system.security.model;

import io.quarkus.security.credential.Credential;
import io.quarkus.security.identity.SecurityIdentity;
import io.smallrye.mutiny.Uni;
import lombok.Data;
import java.security.Permission;
import java.security.Principal;
import java.util.Collection;
import java.util.Map;
import java.util.Set;

/**
 * Spring Security
 *
 * @author haoxr
 */
@Data
public class SysUserDetails implements Principal {

    private Long userId;

    private String username;

    private String password;

    private Boolean enabled;

    private Collection<String> roles;

    private Set<String> perms;

    private Long deptId;

    private Integer dataScope;

    @Override
    public String getName() {
        return username;
    }
}
